home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / DELPHI / CGIXPERT.ZIP / EXAMPLE / FMEMO.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1996-09-03  |  831 b   |  43 lines

  1. unit FMemo;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   CGIEng, CGIUtl;
  8.  
  9. type
  10.   TForm1 = class(TForm)
  11.     CGIEngine1: TCGIEngine;
  12.     CGIMemo1: TCGIMemo;
  13.     procedure CGIMemo1CGIEntry(EntryName: string);
  14.     procedure CGIEngine1CGIRequest(Sender: TObject);
  15.   private
  16.     { Private declarations }
  17.   public
  18.     { Public declarations }
  19.   end;
  20.  
  21. var
  22.   Form1: TForm1;
  23.  
  24. implementation
  25.  
  26. {$R *.DFM}
  27.  
  28. procedure TForm1.CGIMemo1CGIEntry(EntryName: string);
  29. begin
  30.   if AnsiUpperCase(EntryName)='TIME' then
  31.     CGIEngine1.Put(TimeToStr(Now))
  32.   else if AnsiUpperCase(EntryName)='TEST' then
  33.     CGIEngine1.Put('This is the second entry in this document.');
  34. end;
  35.  
  36. procedure TForm1.CGIEngine1CGIRequest(Sender: TObject);
  37. begin
  38.   CGIMemo1.Put;
  39.  
  40. end;
  41.  
  42. end.
  43.